package top.gangster.lunan.contractservice.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import top.gangster.lunan.result.Result;

@FeignClient("service-oss")
@Component
public interface OSSClient {
	/**
	 * 从OSS中删除合同文件
	 * @param fileName 文件名（包括后缀）
	 * @return Result
	 */
	@DeleteMapping("/ossservice/oss/contract/delete/{fileName}")
	public Result deleteContract(@PathVariable("fileName") String fileName);
}
